<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>水波纹</title>
  <style>
    * {
      margin: 0;
      padding: 0;
    }

    .circum {
      position: relative;
      height: 1200px;
      width: 100vw;
      height: 100vh;
      overflow: hidden;
    }

    #waterBg {
      position: absolute;
      left: 0;
      width: 100%;
      height: 100%;
      background: url(./images/waterBg.jpg) center center no-repeat;
      background-size: cover;
    }
  </style>
  <style>
    .jquery-ripples {
      position: relative;
      z-index: 0;
    }
  </style>
  <script src="./js/jquery.js" type="text/javascript" charset="utf-8"></script>
  <script src="./js/jquery-ripples.js" type="text/javascript" charset="utf-8"></script>
</head>

<body>
  <div class="circum">
    <div id="waterBg"></div>
  </div>
  <script type="text/javascript">
    $('#waterBg').ripples({
      resolution: 300,
      dropRadius: 50, //px
      perturbance: 0.04,
      interactive: true
    });
  </script>
</body>

</html>